/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Frm_Index_Usuario.java
 *
 * Created on 17-ene-2013, 16:37:19
 */
package VISTA;

import java.awt.Color;
import java.awt.Image;
import java.awt.Toolkit;

/**
 *
 * @author CiberPulpo
 */
public class Frm_Index_Usuario extends javax.swing.JFrame {

    /** Creates new form Frm_Index_Usuario */
    public Frm_Index_Usuario() {
        initComponents();
        /*Para poder centrar nuestro JFrame*/
        this.setLocationRelativeTo(null);
        /*-------------------------------- */
    }
    
    @Override
    public Image getIconImage() {
        Image retValue = Toolkit.getDefaultToolkit().
        getImage(ClassLoader.getSystemResource("IMG/minsa.png"));
        return retValue;
    }
   String text;  
   int Option;  
  
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jcMousePanel1 = new jcMousePanel.jcMousePanel();
        jDesktopPane1 = new javax.swing.JDesktopPane();
        jToolBar1 = new javax.swing.JToolBar();
        jLabel1 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu4 = new javax.swing.JMenu();
        btnMenu_Cerrar_Sesion = new javax.swing.JMenuItem();
        jMenu1 = new javax.swing.JMenu();
        btnMenu_Nuevo_Report = new javax.swing.JMenuItem();
        btnMenu_Ver_Reporte = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        btnMenu_Ver_Establec = new javax.swing.JMenuItem();
        btnMenu_Ver_Microred = new javax.swing.JMenuItem();
        btnMenu_Ver_Redes = new javax.swing.JMenuItem();
        btnMenu_Ver_UnidadEjecutora = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        btnMenu_Ver_Fechas_Reportes = new javax.swing.JMenuItem();
        btnMenuEnviar_Informacion = new javax.swing.JMenuItem();
        jMenu6 = new javax.swing.JMenu();
        menutemas = new javax.swing.JMenuItem();
        jMenu5 = new javax.swing.JMenu();
        jMenuItem13 = new javax.swing.JMenuItem();
        btnMenu_Ayuda_Acerca = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("REPORTE MENSUAL DE LA PRODUCCIÓN DE SERVICIOS DE SALUD MATERNO PERINATAL");
        setIconImage(getIconImage());

        jcMousePanel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/fondopro.jpg"))); // NOI18N
        jcMousePanel1.setPosicionLogo(new java.awt.Point(200, 40));
        jcMousePanel1.setVisibleLogo(false);

        jDesktopPane1.setBackground(new java.awt.Color(214, 255, 174));
        jDesktopPane1.setToolTipText("");
        jDesktopPane1.setOpaque(false);

        javax.swing.GroupLayout jcMousePanel1Layout = new javax.swing.GroupLayout(jcMousePanel1);
        jcMousePanel1.setLayout(jcMousePanel1Layout);
        jcMousePanel1Layout.setHorizontalGroup(
            jcMousePanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jDesktopPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 813, Short.MAX_VALUE)
        );
        jcMousePanel1Layout.setVerticalGroup(
            jcMousePanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jDesktopPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 644, Short.MAX_VALUE)
        );

        jToolBar1.setBackground(new java.awt.Color(204, 255, 153));
        jToolBar1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

        jLabel1.setText("PROYECTO CREADO POR ESTUDIANTES DE LA FACULTAD DE ING. DE SISTEMAS - \"UNIVERSIDAD SAN LUIS GONZAGA DE ICA\" :    **Almeyda Lévano Irving Pool**Sotomayor Parián Samuel**Quispe Palomino Augusto**");
        jLabel1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel1MouseClicked(evt);
            }
        });
        jToolBar1.add(jLabel1);

        jMenuBar1.setBackground(new java.awt.Color(153, 255, 255));
        jMenuBar1.setToolTipText("");

        jMenu4.setText("Archivo");
        jMenu4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenu4ActionPerformed(evt);
            }
        });

        btnMenu_Cerrar_Sesion.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0));
        btnMenu_Cerrar_Sesion.setBackground(new java.awt.Color(255, 153, 153));
        btnMenu_Cerrar_Sesion.setText("Cerrar Sesión");
        jMenu4.add(btnMenu_Cerrar_Sesion);

        jMenuBar1.add(jMenu4);

        jMenu1.setText("Proceso");
        jMenu1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenu1ActionPerformed(evt);
            }
        });

        btnMenu_Nuevo_Report.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.CTRL_MASK));
        btnMenu_Nuevo_Report.setBackground(new java.awt.Color(213, 255, 255));
        btnMenu_Nuevo_Report.setText("Agregar Reporte");
        jMenu1.add(btnMenu_Nuevo_Report);

        btnMenu_Ver_Reporte.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.CTRL_MASK));
        btnMenu_Ver_Reporte.setBackground(new java.awt.Color(213, 255, 255));
        btnMenu_Ver_Reporte.setText("Ver - Eliminar Reporte");
        jMenu1.add(btnMenu_Ver_Reporte);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Ver");

        btnMenu_Ver_Establec.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.CTRL_MASK));
        btnMenu_Ver_Establec.setBackground(new java.awt.Color(255, 253, 176));
        btnMenu_Ver_Establec.setText("Establecimiento");
        jMenu2.add(btnMenu_Ver_Establec);

        btnMenu_Ver_Microred.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, java.awt.event.InputEvent.CTRL_MASK));
        btnMenu_Ver_Microred.setBackground(new java.awt.Color(255, 253, 176));
        btnMenu_Ver_Microred.setText("Microred");
        jMenu2.add(btnMenu_Ver_Microred);

        btnMenu_Ver_Redes.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.CTRL_MASK));
        btnMenu_Ver_Redes.setBackground(new java.awt.Color(255, 253, 176));
        btnMenu_Ver_Redes.setText("Red");
        jMenu2.add(btnMenu_Ver_Redes);

        btnMenu_Ver_UnidadEjecutora.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_U, java.awt.event.InputEvent.CTRL_MASK));
        btnMenu_Ver_UnidadEjecutora.setBackground(new java.awt.Color(255, 253, 176));
        btnMenu_Ver_UnidadEjecutora.setText("Unidad Ejecutora");
        jMenu2.add(btnMenu_Ver_UnidadEjecutora);

        jMenuBar1.add(jMenu2);

        jMenu3.setText("Reporte");

        btnMenu_Ver_Fechas_Reportes.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.CTRL_MASK));
        btnMenu_Ver_Fechas_Reportes.setBackground(new java.awt.Color(204, 255, 204));
        btnMenu_Ver_Fechas_Reportes.setText("Fechas de Reporte");
        jMenu3.add(btnMenu_Ver_Fechas_Reportes);

        btnMenuEnviar_Informacion.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_I, java.awt.event.InputEvent.CTRL_MASK));
        btnMenuEnviar_Informacion.setBackground(new java.awt.Color(204, 255, 204));
        btnMenuEnviar_Informacion.setText("Enviar información");
        jMenu3.add(btnMenuEnviar_Informacion);

        jMenuBar1.add(jMenu3);

        jMenu6.setText("Configuración");

        menutemas.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.CTRL_MASK));
        menutemas.setBackground(new java.awt.Color(255, 204, 51));
        menutemas.setText("Temas");
        menutemas.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                menutemasMousePressed(evt);
            }
        });
        jMenu6.add(menutemas);

        jMenuBar1.add(jMenu6);

        jMenu5.setText("Ayuda");

        jMenuItem13.setBackground(new java.awt.Color(255, 213, 227));
        jMenuItem13.setText("Tutorial De Videos");
        jMenu5.add(jMenuItem13);

        btnMenu_Ayuda_Acerca.setBackground(new java.awt.Color(255, 213, 227));
        btnMenu_Ayuda_Acerca.setText("Acerca De");
        jMenu5.add(btnMenu_Ayuda_Acerca);

        jMenuBar1.add(jMenu5);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jcMousePanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 813, Short.MAX_VALUE)
            .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addComponent(jcMousePanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 644, Short.MAX_VALUE)
                .addGap(1, 1, 1)
                .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        getAccessibleContext().setAccessibleDescription("");

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void jMenu1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu1ActionPerformed

}//GEN-LAST:event_jMenu1ActionPerformed

private void jMenu4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu4ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jMenu4ActionPerformed

private void jLabel1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel1MouseClicked
    Nosotros Nosotros = new Nosotros();
    jDesktopPane1.add(Nosotros);
    Nosotros.show();
    Nosotros.setLocation(400, 140);
}//GEN-LAST:event_jLabel1MouseClicked

    private void menutemasMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_menutemasMousePressed

    }//GEN-LAST:event_menutemasMousePressed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Frm_Index_Usuario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Frm_Index_Usuario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Frm_Index_Usuario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Frm_Index_Usuario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Frm_Index_Usuario().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.JMenuItem btnMenuEnviar_Informacion;
    public javax.swing.JMenuItem btnMenu_Ayuda_Acerca;
    public javax.swing.JMenuItem btnMenu_Cerrar_Sesion;
    public javax.swing.JMenuItem btnMenu_Nuevo_Report;
    public javax.swing.JMenuItem btnMenu_Ver_Establec;
    public javax.swing.JMenuItem btnMenu_Ver_Fechas_Reportes;
    public javax.swing.JMenuItem btnMenu_Ver_Microred;
    public javax.swing.JMenuItem btnMenu_Ver_Redes;
    public javax.swing.JMenuItem btnMenu_Ver_Reporte;
    public javax.swing.JMenuItem btnMenu_Ver_UnidadEjecutora;
    public javax.swing.JDesktopPane jDesktopPane1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenu jMenu5;
    private javax.swing.JMenu jMenu6;
    public javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem13;
    private javax.swing.JToolBar jToolBar1;
    private jcMousePanel.jcMousePanel jcMousePanel1;
    public javax.swing.JMenuItem menutemas;
    // End of variables declaration//GEN-END:variables
}
